Table Function Edit Table

The Function Table Editor is where all function tables are created and edited. The fields of the Function Table editor are defined below.

 

ID The name of the function table.

Table... Click on this heading button to open a table for defining the independent and dependent values of the function.

The tables for the two example functions are given below.

 

The independent and dependent values allow any general expression such as numbers, variables, and math functions. The fields are evaluated only at translation, and cannot vary during the simulation.

When calling a user-defined table function, if the independent value is out of range, then the table function will return a zero for the dependent value. Consider the following function table, Operation_Time:

 

If the function were called with the command "Operation_Time(5)," the independent value passed to the table function Operation_Time would be five. But five is beyond the limits of the table, so the dependent value returned will be zero. Likewise, if the independent value is 1, the dependent value returned will be zero. However, if 2.7 is entered as the independent value, ProModel will interpolate and return a value between 30 and 50.